//
//  SectionsModel.m
//  课余时间
//
//  Created by zgr on 16/4/9.
//  Copyright © 2016年 张大少. All rights reserved.
//

#import "SectionsModel.h"
@implementation SectionsModel
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"photos"]) {
        
        self.photoModel = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            PhotosModel *model = [[PhotosModel alloc]init];
            [model setValuesForKeysWithDictionary:dic];
            [_photoModel addObject:model];
        }
        
        
        
        
    }
    else if([key isEqualToString:@"id"])
    {
        self.secID = value;
        
    }
    else if([key isEqualToString:@"description"])
    {
        _MyDescription = value;
        
    }
}
@end
